package com.xiaomazi.acl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaomazi.acl.entity.Permission;

import java.util.List;

public interface PermissionMapper extends BaseMapper<Permission> {
    /**
     * 根据用户id查询用户操作权限
     * @param id userId
     * @return List<String>
     */
    List<String> selectPermissionValueByUserId(String id);

    /**
     * 查询所有操作权限 【角色为admin】
     * @return List<String>
     */
    List<String> selectAllPermissionValue();
}
